using System.Collections;
using System.Collections.Generic;
using Net.Component;
using Net.Share;
using UnityEngine;

public class Client : MonoBehaviour
{
    // Start is called before the first frame update
    void Start()
    {
        ClientManager.I.Client.AddRpcAuto(this, this);
    }

    // Update is called once per frame
    void Update()
    {
        ClientManager.I.Client.Call(123);
    }

    [Rpc(123)]
    public void RpcCall()
    {
        transform.Rotate(0,30,0);
        //Debug.Log("客户端回调");
    }
}
